<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="UTF-8">
		<title>LingPowerAI</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script type="text/javascript">
			document.write('<script src="../../js/fix.js?rd=?rd=' + Math.random() + '"><\/script>');
		</script>
		<script type="text/javascript">
			link();
		</script>
		<link rel="stylesheet" href="../../fonts/iconfont/iconfont.css">
		<script src="../../js/H5+.js"></script>
		<style type="text/css">
			html,
			body {
				background-color: white;
			}

			.content {
				width: 100%;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.content .left {
				background: url(../../images/kh.png) no-repeat;
			}

			.content .cont {
				width: 0.23rem;
				height: 0.2rem;
				margin: 0 0.4rem;
				background: url(../../images/kk.png);
				background-size: 100% 100%;
			}

			.content .rigth {
				background: url(../../images/hg.png) no-repeat;
			}

			.content .left,
			.content .rigth {
				width: 0.7rem;
				height: 0.7rem;
				background-size: 100% 100%;
			}

			.mui-content-padded {
				margin: 0px;
				box-shadow: none;
			}
			.mui-content .point_box{
				padding:0px 0.1rem ;
				/* position: absolute; */
				    box-sizing: border-box;
				border:0.01rem solid #eee;
			   width: 90%;
			   margin-left: 5%;
			   margin-top: 0.1rem;
			   border-radius: 0.05rem;
			   background: #f8f8f8;
			   padding-bottom: 0.05rem;
		      /* box-shadow: 0px 0px 0.15rem -0.05rem #47bafe; */
			}
	       
		
			.point_box p{
				text-align: left;
				margin-bottom: 0.07rem;
				font-size: 0.15rem;
				line-height: 0.25rem;
			}
			.actionButton{
				margin: 0.15rem auto;
				margin-bottom: 0.2rem;
			}
		</style>
	</head>

	<body style="display: none;opacity: 0;">
	<!-- 	<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">批量诊断</h1>
			<a class="mui-icon mui-icon mui-icon-help mui-pull-right " onclick="showSide()"><span style="font-size: 14px;">帮助</span></a>
		</header> -->
		<div class="mui-content" style="padding-top:20px;position: relative;background: #FFFFFF;">
			<div class="mui-content-padded box" style=" text-align: center;padding: 0rem;">
				<div class="content">
					<div class="left"></div>
					<div class="cont"></div>
					<div class="rigth"></div>
				</div>
				<div>
				<div  style="margin-top: 0.15rem; margin-bottom: 0.15rem">
					<!-- <p style="color: #47BAFE; font-size:  0.17rem;margin-bottom: 0.1rem; ">客户潜力诊断</p> -->
					<p style="color: #47BAFE; font-size: 0.18rem;margin-bottom: 0rem;">开启智能销售之旅</p>
				</div>
				<button id="telImp" style=" padding: 0.1rem;font-size: 0.2rem;"  class="mui-btn mui-btn-block mui-btn-primary actionButton">
					<span class="iconfont " style="font-size: 0.23rem !important;">&#xe635;</span>
					潜在客户诊断
				</button>
			<!-- 	<button id="wxImp" style=" padding: 0.1rem;font-size: 0.16rem;" class="mui-btn mui-btn-block mui-btn-primary actionButton">
					<span class="mui-icon mui-icon-weixin"></span>
					诊断微信好友潜力
				</button> -->
				</div>
					<div class="point_box">
								 <div style="height: 0.4rem; line-height: 0.4rem;display: flex;align-items: center;">
									<span style="color: #47BAFE;font-size: 0.16rem;"><span class="mui-icon mui-icon-info" style="font-size: 0.23rem;">&nbsp;</span>诊断说明</span>
								</div>
								 <p>
									 1、灵豹将对您的手机好友及微信好友进行诊断，识别高潜力客户。<span style="color: #47BAFE;">相关数据仅在为您提供销售决策时使用，不会对第三方泄漏。</span>
				
								 </p>
								 <p>
									 2、诊断过程中需要操作您的手机，请您按照提示<span style="color: #47BAFE;">开启诊断服务，并在诊断过程中暂时不要操作手机</span>
								 </p>
								  <p>
								 	3、诊断完成后，灵豹将自动测算客户潜力分数，并生成行动推荐卡片<span style="color: #47BAFE;">（预计等待5~10分钟）</span>
								 </p>
				</div>
					<div class="point_box">
					<div style="height: 0.4rem; line-height: 0.4rem;display: flex;align-items: center;">
				
						<span style="color: #47BAFE;font-size: 0.16rem;"><span  class="mui-icon mui-icon-help" style="font-size: 0.22rem;">&nbsp;</span>使用帮助</span>
					</div>
					<p>
					1、如果微信无法正常诊断，请先清理后台应用，再重启灵豹APP
					</p>
					<p style="width:100%;word-break:break-all;word-wrap:break-word">2、使用过程中如有任何问题，请<a href="tel:17521351775" style="color: #47BAFE;">联系客服</a></p>
					
				</div>
			</div>
		
			 
		</div>
		<script type="text/javascript">
			script();
		</script>

		<script type="text/javascript">
			mui.init();
			var ws=null,wc=null;
			mui.plusReady(function() {
				ws=plus.webview.currentWebview();
				// 用户点击后
				ws.addEventListener('maskClick', function(){
					wc.close('auto');
				},false);
				//获取操作按钮对象
				var telImpBotton = document.getElementById("telImp");
				var wxImpButton = document.getElementById("wxImp");

								storage.init();
				storageUser = kidstorageuser.getInstance();
				//绑定[诊断手机联系人潜力]事件
				telImpBotton.addEventListener("tap", function() {
						localStorage.removeItem('customerData');
						let customerPage =plus.webview.getWebviewById("customer/customer.html");;
						mui.fire(customerPage, 'refreshPage', {});  
					//openNew("addressbook.html");
					
					var REQUESTCODE = 1000;
					main = plus.android.runtimeMainActivity();
					var Intent = plus.android.importClass('android.content.Intent');
					var target = plus.android.importClass('com.linkpower.wechathelper.WechatRdActivity');
					var intent = new Intent(main,target.class);
                    intent.putExtra("salesId", storageUser.UId);

					main.startActivityForResult(intent, REQUESTCODE);
				});

				//绑定[诊断微信好友潜力]事件
				//wxImpButton.addEventListener("tap", function() {
				//	localStorage.removeItem('customerData');
				//		localStorage.removeItem('customerData1');
				//	localStorage.removeItem('customerData2');
				//	localStorage.removeItem('customerData3');
					//openNew("addwei.html");
				//	var REQUESTCODE = 1000;
				//	main = plus.android.runtimeMainActivity();
				//	var Intent = plus.android.importClass('android.content.Intent');
				//	var target = plus.android.importClass('com.linkpower.wechathelper.WechatRdActivity');
				//	var intent = new Intent(main,target.class);
                 //   intent.putExtra("salesId", storageUser.UId);

				//	main.startActivityForResult(intent, REQUESTCODE);
			//	})
			});
			
			function showSide(){
				// 防止快速点击可能导致多次创建
				if(wc){
					return;
				}
				// 开启遮罩
				ws.setStyle({mask:'rgba(0,0,0,0.5)'});
				// 创建侧滑页面
				wc = createWithoutTitle('import_mask_side.html', {
					top: '0%',
					width: '100%',
					height:'68%',
					popGesture: 'none',
					titleNView: false
				});
				// 侧滑页面关闭后关闭遮罩
				wc.addEventListener('close', function(){
					ws.setStyle({mask:'none'});
					wc = null;
				}, false);
				// 侧滑页面加载后显示（避免白屏）
				wc.addEventListener('loaded', function(){
					wc.show('slide-in-top');
				}, false);
			}
		</script>
	</body>

</html>
